package com.shengqin.config.handlers;

import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.TypeReference;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.shengqin.pojo.summary.SummaryGraduationModel;

import java.util.List;

public class SummaryGraduationModelTypeHandler extends FastjsonTypeHandler {

    public SummaryGraduationModelTypeHandler(Class<?> type) {
        super(type);
    }

    @Override
    public Object parse(String json) {
        return JSON.parseObject(json,new TypeReference<List<SummaryGraduationModel>>(){});
    }
}
